package com.dingreading.cloud.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 叮叮学院课程分类
 */
@Data
@Table(value = "course_types")
public class CourseTypes implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    /**
     * 主分类id
     */
    private Long mainId;

    /**
     * 课程分类名
     */
    private String courseTypeName;

    /**
     * 上级id
     */
    private Long parentId;

    /**
     * 层级
     */
    private Integer levelIndex;

    /**
     * 是否最后一级 0，否 1，是
     */
    private Integer levelEnd;

    /**
     * 前端展示序号
     */
    private Integer showOrder;

    /**
     * 类型 1.视频 2.表格下载
     */
    private Integer type;

    /**
     * 是否免费 0.不 1.免费
     */
    private Integer freeStatus;

    /**
     * 层级节点
     */
    private String nodes;

    /**
     * 状态 0.禁用 1.启用
     */
    private Integer enabled;

    /**
     * 门店运营类型
     */
    private String operationType;

    /**
     * 门店合作类型
     */
    private String cooperationType;

    /**
     * 科目类型
     */
    private String subjectType;

    /**
     * 跳转地址
     */
    private String jumpUrl;

}
